package com.xxx.dao;

import com.xxx.admin.*;
import com.xxx.admin.Package;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IBusinessDao {
    Integer addBusiness(Business business);
    Business loginBusiness(@Param("id")Integer id, @Param("password")String password);

    /**
    * 员工表增删改查
    * */
    Integer addEmployee(Employee employee);
    Integer deleteEmployee(@Param("id") Integer id);
    Integer updateEmployee(Employee employee);
    Employee seleEmployee(@Param("id") Integer id);
    Integer showEmployee();
    /**
    *分类表增删改查
    * */
    Integer addClassify(Classify classify);
    Integer deleteClassify(@Param("id") Integer id);
    Integer updateClassify(Classify classify);
    Integer showClassify();
    Classify seleClassify(@Param("id") Integer id);
    /**
     * 菜品表增删改查
     * */
    Integer addDishes(Dishes dishes);
    Integer deletDishes(@Param("cid") Integer id);
    Integer updateDishes(Dishes dishes);
    Integer showDishes();
    Dishes seleDishes(@Param("cid") Integer id);

    /**
     * 套餐表增删改查
     * */
    List<Package> selePackage(@Param("name") String name);
    Integer addPackage(Package addpackage);
    Integer deletePackage(@Param("name") String name);
    Integer updatePackage(Package updatepackage);
    Integer showPackage();
    List<Package> selectPackage(@Param("name") String name);


    /**
     * 订单增删改查
     * */
    Integer addOrders(Orders orders);
    Integer deleteOrders(@Param("id") Integer id);
    Integer updateOrders(Orders orders);
    Integer showOrders();
    List<Orders> seleOrders(@Param("id") Integer id);

    /**
     * 订单详情表增删改查
     * */
    Integer addOrdersDetails(OrdersDetails ordersDetails);
    Integer deleteOrdersDetails(@Param("Order") Integer orders,@Param("dishes") Integer dishes,@Param("Setmeal") Integer setmeal);
    Integer updateOrdersDetails(OrdersDetails ordersDetails);
    OrdersDetails selectOrdersDetails(@Param("Order") Integer orders,@Param("dishes") Integer dishes,@Param("Setmeal") Integer setmeal);
}
